# dump.py

import irc_protocol
import irc_server

def link(commands, help):
    commands["dump"] = process_command

def process_command( server, command, help, authenticate ):
    server.send( irc_protocol.reply_private( 
                  command, "cmd[0] " + command[0]))
    server.send( irc_protocol.reply_private(           
                  command, "cmd[1] " + command[1]))
    server.send( irc_protocol.reply_private(           
                  command, "cmd[2] " + command[2]))
    server.send( irc_protocol.reply_private(           
                  command, "cmd[3] " + command[3]))
    server.send( irc_protocol.reply_private(
                  command, "level " + str(authenticate.user_level(
                                           irc_protocol.short_nick(command[0])))))

